package demo_wty.servlet;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:wangtianyu(王天宇)
 * @Date：Created on 2020/3/27 0027 22:16
 * @Description:
 */
public class WtyDataSource {
    private static List<WtyUser> wtyUsers;
    private static List<WtyGood> wtyGoods;

    static {
        wtyUsers = new ArrayList<>();
        wtyUsers.add(new WtyUser(1, "jack", 21));
        wtyUsers.add(new WtyUser(2, "tom", 91));
        wtyGoods = new ArrayList<>();
        wtyGoods.add(new WtyGood(1, "辣条", 1));
        wtyGoods.add(new WtyGood(2, "汽水", 3));
    }

    public static List<WtyUser> getWtyUsers() {
        return wtyUsers;
    }

    public static List<WtyGood> getWtyGoods() {
        return wtyGoods;
    }
}
